<?php if(file_exists('install/install_lock.txt')){header('Location: /install/index.php');exit;}$hasError=false;if(!file_exists('install/backup/i_index.php')){$errorStr="<div class=\"yellowScreen\">安装文件缺失，将不能继续。</div>";$hasError=true;}if(!@copy('install/backup/i_index.php','index.php')){$errorReport=error_get_last();$errorStr='<div class="yellowScreen">安装程序写入文件失败（'.$errorReport['message'].'）。请确认站点程序有足够的读写权和站点程序的完整性。</div>';$hasError=true;}if($hasError){$content='安装中断：'.$errorStr;}else{$content=<<<S
<div class="conBox">
	<!-- 进度 -->
	<div class="progress">
		<div class="green_loading"></div>
		<p class="progressTxt">检测必要安装环境...</p>
	</div>
	
	<div class="result hidden">
		<div class="errorTit">
			<p class="statusDes"></p>
		</div>
		<div class="desList">
			<ul></ul>
		</div>
	</div>
	
</div>
<div class="opt">
	<a href="/install/index.php" class="optBtn">上一步</a>
	<button class="nextStepBtn optBtn optBtn_disabled" type="button">下一步</button>
</div>
S;
}print$content;?>